#!/usr/bin python3
# -*- coding: utf-8 -*-
"""flask 示例demo"""
from flask import Flask
from flask import Blueprint

# 蓝图定义
login_bp = Blueprint("login", __name__, url_prefix="/login")

# 服务实例化
app = Flask(__name__)

# 添加蓝图
app.register_blueprint(login_bp)


# api接口逻辑
@login_bp.route("", methods=["GET"])
def login():
    """
    测试登录demo
    """
    return "login success"


# 服务启动
if __name__ == "__main__":
    app.run(port=8080)
